package com.danceforyou.${objectName?uncap_first}.model;

import com.danceforyou.common.model.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 类名称：${objectName}DO
 * 创建人：danceforyou
 * 创建时间：${nowDate?string("yyyy年MM月dd日")}
 * 版本号：1.0v
 */
@Data
@EqualsAndHashCode(callSuper = true)
<#if priColumn.dataType == "int">
public class ${objectName}DO extends BaseDO<Integer> {
<#elseif priColumn.dataType == "bigint">
public class ${objectName}DO extends BaseDO<Long> {
<#else>
public class ${objectName}DO extends BaseDO<String> {
</#if>

<#list columnList as column>
    /*${column.columnComment}*/
    <#if column.dataType == "tinyint">
    private Boolean ${column.humpColumnName};
    <#elseif column.dataType == "int">
    private Integer ${column.humpColumnName};
    <#elseif column.dataType == "bigint">
    private Long ${column.humpColumnName};
    <#elseif column.dataType == "decimal">
    private BigDecimal ${column.humpColumnName};
    <#elseif column.dataType == "date" || column.dataType == "time" || column.dataType == "datetime">
    private Date ${column.humpColumnName};
    <#else>
    private String ${column.humpColumnName};
    </#if>
</#list>
}